package itasura.singleton.lazy;

/**
 * 懒汉模式，非线程安全
 *
 * @author sailor wang
 * @date 2020/6/30 5:07 PM
 * @description
 */
public class Singleton {
    private Singleton() {}

    private static Singleton instance;

    public static Singleton getInstance() {
        if (instance == null) {
            instance = new Singleton();
        }
        return instance;
    }
}